<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2016/3/8
  Time: 13:42
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>回复</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
    <meta name="renderer" content="webkit">
    <link href="${pageContext.request.contextPath}/static/css/common.css" rel="stylesheet">
    <link href="${pageContext.request.contextPath}/static/plugins/bootstrap-3.3.5/css/bootstrap.min.css"
          rel="stylesheet">
    <link href="${pageContext.request.contextPath}/static/plugins/font-awesome-4.3.0/css/font-awesome.min.css"
          rel="stylesheet">
    <link href="${pageContext.request.contextPath}/static/plugins/select2-4.0.0/dist/css/select2.min.css"
          rel="stylesheet"/>
          <script src="${pageContext.request.contextPath}/static/js/common.js?date=0105"></script>
    <script src="${pageContext.request.contextPath}/static/js/jquery-1.11.3.min.js"></script>
    <script src="${pageContext.request.contextPath}/static/plugins/bootstrap-3.3.5/js/bootstrap.min.js"></script>
    <script src="${pageContext.request.contextPath}/static/plugins/select2-4.0.0/dist/js/select2.min.js"></script>
    <script type="text/javascript"
            src="${pageContext.request.contextPath}/static/plugins/My97DatePicker/WdatePicker.js"></script>
</head>
</head>
<body>
<div class="col-sm-12">
 <form class="form-horizontal m-t" id="form" method="post"
          action="${pageContext.request.contextPath}/admin/fix_reply.action">
		<input type="hidden" name="sid" value="${sid}">
        <div class="form-group" >
               <label class="col-sm-3  control-label" style="float: left;padding-left: 31px;" ><i class="require">*</i>选择维修人员:</label>
            <div>
                <select name="fixerId" id="fixerId"  class="form-control" style="width: 185px;">
                    
                </select>
            </div>
        </div>
        <div class="form-group">
        	<label class="col-sm-3  control-label" style="float: left;padding-left: 31px;"><i class="require">*</i>最早上门时间:</label>
                 <div class="col-sm-8">
                     <input class="form-control" name="fixStartTime" id='fixStartTime' style="width: 185px;"
                            onclick='getfixtime()' />
                 </div>
 		</div>
        <div class="form-group">
        	<label class="col-sm-3  control-label" style="float: left;padding-left: 31px;"><i class="require">*</i>最晚上门时间:</label>
                 <div class="col-sm-8">
                     <input class="form-control" name="fixEndTime" id='fixEndTime' style="width: 185px;"
                            onclick='getfixtime()'/>
                 </div>
 		</div>
 	</form>
</div>

<script type="text/javascript">
function getfixtime(){
	var nowdate = getNowDateStr();
	WdatePicker({minDate:nowdate});
}
$(function () {
	$.post("${pageContext.request.contextPath}/admin/fix_fixerAll.action", 
	        function (data) {
	        $("#fixerId").empty();
	        $("#fixerId").append("<option value=''>请选择维修人员</option>");
	        for (var i = 0; i < data.length; i++) {
	            $("#fixerId").append("<option value='" + data[i].sid + "'>" + data[i].cname + "</option>");
	        }
	        $("#fixerId").select2({
	            "placeholder": "请选择维修人员",
	        })
		    
	    }, "json");
    $("#fixStartTime").val(getNowDateStr());
    $("#fixEndTime").val(getNowDateAfterStr(1));
    
})

	
</script>
</body>
</html>
